const formatTime = (data) => {
	let second = data.second
	// console.log(data)
	return second > 3600 ? Math.floor(second / 3600) + "小时" : Math.floor(second / 60) + "分钟"
}
const formatName = (data) =>{
	return data.name || "未知"
}
const formatCity = (data) =>{
	return data.company ? data.company.name : "未知"
}
const formatProject = (data) =>{
	return data.project ? data.project : "未知"
}
export const userOpts = [{
	th:'姓名',
	field: 'name',
	format: formatName
},{	
	th:'城市/单位',
	format: formatCity
},{	
	th:'项目/部门',
	format: formatProject
},{
	th:'微信昵称',
	field: 'nickname'
},{	
	th:'性别',
	field: 'sex'
}]